﻿using System;
using System.Collections.Generic;
using System.Text;
using JRBase;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace JRTestGame
{
    public class Box : Actor
    {
        public void Initialize(Texture2D texture, Rectangle rectangle)
        {
            PicSprite sprite = new PicSprite();
            sprite.Initialize(texture, new Vector2(rectangle.X, rectangle.Y), 1.0f);
            base.Initialize(sprite, rectangle, 10.0f);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            sprite.Draw(spriteBatch);
        }

        public override void Update(GameTime gameTime, Vector2 drawPosition)
        {
            sprite.Position = drawPosition;
            sprite.Update(gameTime);
        }
    }
}
